#include<bits/stdc++.h>
using namespace std;
int solve(int n)
{
    int count = 0;
    for (int i = 1; i <= n; ++i)
        if (n % i == 0) count++;
    return count;
}

int main() {
    for (int i = 1; i < 100000; i++) {
        if (solve(i) == 100) {
            cout << i << endl;
            break;
        }
    }

    return 0;
}